<script src="//res.wx.qq.com/open/js/jweixin-1.6.0.js"></script>
<script type="text/javascript">
window.sharedata='{$return["sharedata"]}';
var jssdkconfig="{$_SESSION['account']['jssdkconfig']";
	jssdkconfig.debug = false;
	jssdkconfig.jsApiList = [
		'checkJsApi',
		'onMenuShareTimeline',
		'onMenuShareAppMessage',
		'onMenuShareQQ',
		'onMenuShareWeibo',
		'hideMenuItems',
		'showMenuItems',
		'hideAllNonBaseMenuItem',
		'showAllNonBaseMenuItem',
		'translateVoice',
		'startRecord',
		'stopRecord',
		'onRecordEnd',
		'playVoice',
		'pauseVoice',
		'stopVoice',
		'uploadVoice',
		'downloadVoice',
		'chooseImage',
		'previewImage',
		'uploadImage',
		'downloadImage',
		'getNetworkType',
		'openLocation',
		'getLocation',
		'hideOptionMenu',
		'showOptionMenu',
		'closeWindow',
		'scanQRCode',
		'chooseWXPay',
		'openProductSpecificView',
		'addCard',
		'chooseCard',
		'openCard',
		'openAddress',
		'openBusinessView'
	];
	wx.config(jssdkconfig);
	wx.ready(function (){
		window.config.wxready=true;
		if(window.after_wxready_func.length>0){
			window.after_wxready_func.forEach(function(func){
				func();
			});
		}
		wx.onMenuShareAppMessage(window.sharedata);
		wx.onMenuShareTimeline(window.sharedata);
		wx.onMenuShareQQ(window.sharedata);
		wx.onMenuShareWeibo(window.sharedata);
	});
</script>